var orderPayModule = (function () {
    return {
    	
     /**
        * 提交订单支付
        * @param {Object} param
        * @param {Object} callBack
        */
        submitPayOrder: function (param, callBack) {
            utilModule.post({
                url: "consultOrderPay/confirmPay",
                data: param,
                needJson: true, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
        
           /**
        * 查看订单明细
        * @param {Object} param
        * @param {Object} callBack
        */
        queryOrderDetail: function (param, callBack) { 
            utilModule.get({
                url: "consultOrderPay/queryOrderDetailById",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
        queryUnfinishedOrder: function (param, callBack) { 
            utilModule.get({
                url: "consultOrderPay/queryUnfinishedOrderByUid",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
        /**
         * 电话咨询订单
         * @param {Object} param
         * @param {Object} callBack
         */
         queryPhoneOrderDetail: function (param, callBack) { 
            utilModule.get({
                url: "phoneOrder/queryOrderDetailById",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
         submitPhonePayOrder: function (param, callBack) {
            utilModule.post({
                url: "phoneOrder/confirmPay",
                data: param,
                needJson: true, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
        pushMessage: function (param, callBack) {
            utilModule.post({
                url: "phoneOrder/pushMessage",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
        patientReview: function (param, callBack) {
            utilModule.post({
                url: "doctor/getDoctorEvaluate",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
        queryLastArchivesidByUserid: function (param, callBack) { 
            utilModule.get({
                url: "consultOrderPay/queryLastArchivesidByUserid",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
        
        queryMallOrderDetail: function (param, callBack) { 
            utilModule.post({
                url: "userCenter/getOneMallOrder",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
        
         submitMallPayOrder: function (param, callBack) {
            utilModule.post({
                url: "userCenter/confirmPay",
                data: param,
                needJson: false, 
                async: false,
                success: function (response) {
                    callBack(response);
                }
            });
        },
  }
})();